From: Matthieu Gallien Date: Tue, 22 Apr 2025 09:16:21 +0000 (+0200) Subject: fix: use safer conversion from QString to filesystem::path X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2^2~11^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=db8787dcb28f8868e07ef4858d9e9ed27800dcd5;p=nextcloud-desktop.git fix: use safer conversion from QString to filesystem::path Signed-off-by: Matthieu Gallien --- diff --git a/src/common/filesystembase.cpp b/src/common/filesystembase.cpp index 7ab136b42..660e2d382 100644 --- a/src/common/filesystembase.cpp +++ b/src/common/filesystembase.cpp @@ -591,7 +591,7 @@ bool FileSystem::remove(const QString &fileName, QString *errorString) #endif try { - if (!std::filesystem::remove(std::filesystem::path{fileName.toUtf8().data()})) { + if (!std::filesystem::remove(std::filesystem::path{fileName.toStdWString()})) { if (errorString) { *errorString = QObject::tr("File is already deleted"); }